import React from "react";
import coupon from "../style/coupon.module.css";
import leftImg from "../img/left.png";
import { useNavigate } from "react-router-dom";
import you from '../img/you.png'

function App() {
  const navigate = useNavigate();
  const goBack = () => navigate(-1);
  return (
    <div className={coupon.coupon}>
      <div className={coupon.top}>
        <div>
          <img onClick={goBack} src={leftImg} alt="" />
          <b>优惠卷</b>
        </div>
      </div>
      <div className={coupon.content}>
        <img src={you} alt="" />
      </div>
    </div>
  );
}

export default App;
